//
//  SignHeadView.swift
//  KaMengApplication
//
//  Created by DUONIU_MAC on 2018/8/22.
//  Copyright © 2018年 DUONIU_MAC. All rights reserved.
//

import UIKit

class SignHeadView: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
        
        let logoView = UIImageView()
        let titleView = UIImageView()
        let textView = UIImageView()
        
        logoView.image = #imageLiteral(resourceName: "kamenglogo")
        titleView.image = #imageLiteral(resourceName: "kamengtext")
        textView.image = #imageLiteral(resourceName: "kamengblack")
        
        self.addSubview(logoView)
        self.addSubview(titleView)
        self.addSubview(textView)
        
        logoView.snp.makeConstraints { (make) in
            
            make.top.equalToSuperview().offset(RATIO_H(maxNum: 80))
            make.centerX.equalToSuperview()
            make.height.width.equalTo(RATIO_H(maxNum: 60))
        }
        
        titleView.snp.makeConstraints { (make) in
            make.top.equalTo(logoView.snp.bottom).offset(RATIO_H(maxNum: 5))
            make.centerX.equalTo(logoView)
            make.width.equalTo(RATIO_H(maxNum: 40))
            make.height.equalTo(RATIO_H(maxNum: 25))
            
        }
        
        textView.snp.makeConstraints { (make) in
            make.top.equalTo(titleView.snp.bottom)
            make.centerX.equalTo(titleView)
            make.width.equalTo(RATIO_H(maxNum: 60))
            make.height.equalTo(RATIO_H(maxNum: 25))
        }
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
